package nave.android.game;

import java.awt.Graphics;
import java.awt.geom.Point2D;

import android.graphics.Point;
import android.view.animation.Animation;

public class ChaoSome extends AnimatedObject {

	//Point2D frame;
	
	int contador;
	boolean chaoAparece = true;
	int tempoMax = 100;
	
	public ChaoSome(Asset texture, Point2D position, Point2D dimensao, Point2D recortePos)
	{
		super(texture, position, dimensao, recortePos, 0.2f, new Point(1, 2), false);
	}
	
	public void Update()
	{
		contador++;
		if(contador > tempoMax)
		{
			chaoAparece =! chaoAparece; 
			contador = 0;
		}
		super.Update();
	}
	public void Draw(Graphics g)
	{
		if(chaoAparece)
			super.Draw(g);
	}
}
